package cn.xhf.export.model;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.apache.commons.collections4.map.LinkedMap;


/**
 * @author 羡鸿飞
 *	用了不少勇气才做这么大的改动，
 *	这可能是非常核心的部分了
 */
public class IndexModel {
	
//	-----------------------------------------公用分界线---------------------------------------------------------
	/**
	 * 主题
	 */
	private String theme = "default";
	
	/**
	 * 导出类型
	 */
	private String fileName="EXCEL";
//	----------------------------------------公用分界线----------------------------------------------------------

//	------------------------------------------导出通用方法--------------------------------------------------------
	/**
	 * 
	 * 导出方式一
	 *  应用场景：适合所有带出
	 * sql 语句 对应于 head 的 key
	 */
	private String sql;
	
	/**
	 *  key对应数据库字段，value对应值
	 */
	private Map<String, String> head = new LinkedMap<String, String>();
//	-------------------------------------------导出通用方法-------------------------------------------------------

//	------------------------------------------结果集导出--------------------------------------------------------
	/**
	 * 导出方式二
	 * 应用场景：统计，和特殊操作习惯
	 */
	private Map<String,List> sqlDATA;
//	------------------------------------------结果集导出--------------------------------------------------------

	

//	------------------------------------------EXCEL公用方法--------------------------------------------------------
	/**
	 * 页脚名称
	 */
	private String sheetName = "页脚一";
	
	/**
	 *	多页脚时需要调用的参数
	 */
	private List<Map<String, String>> muchHead = new ArrayList<Map<String, String>>();
	
	/**
	 * 多页脚名称。不指定用默认名称
	 */
	private List<String> muchSheetName;
//	------------------------------------------EXCEL公用方法--------------------------------------------------------


	
	public Map<String, List> getSqlDATA() {
		return sqlDATA;
	}

	public void setSqlDATA(Map<String, List> sqlDATA) {
		this.sqlDATA = sqlDATA;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getSheetName() {
		return sheetName;
	}

	public void setSheetName(String sheetName) {
		this.sheetName = sheetName;
	}

	public List getMuchSheetName() {
		return muchSheetName;
	}

	public void setMuchSheetName(List muchSheetName) {
		this.muchSheetName = muchSheetName;
	}

	public List<Map<String, String>> getMuchHead() {
		return muchHead;
	}

	public void setMuchHead(List<Map<String, String>> muchHead) {
		this.muchHead = muchHead;
	}

	public String getTheme() {
		return theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public Map<String, String> getHead() {
		return head;
	}

	public void setHead(Map<String, String> head) {
		this.head = head;
	}
	
	
	
	
	
}
